package gradingcalculator;

public class Instance {
    
    //Attributes
    private double grade;
    private double max;
    private boolean scored;
    
    //Constructor
    public Instance(double max){
        this.grade = 0.0;
        this.max = max;
        this.scored = false;
    }
    public Instance(double max, double grade){
        this.grade = grade;
        this.max = max;
        this.scored = true;
    }
    
    //Returns
    public double grade(){
        return grade;
    }
    public double max(){
        return max;
    }
    public boolean ifScored(){
        return scored;
    }
    
    //Modifiers
    public void setGrade(double grade){
        this.grade = grade;
    }
    public void setMax(double max){
        this.max = max;
    }
    public void setScored(boolean ifScored){
        this.scored = ifScored;
    }
    
    //Advanced Modifiers
    public void grade(double grade){
        this.grade = grade;
        this.scored = true;
    }
    
    
}
